#include <REGX52.H>
#include "Delay.h"
#include "UART.h"
unsigned char Tab[8]= {0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf,  0xbf, 0x7f};
/*void UartInit(void)		
{
	PCON |= 0x80;		//使能波特率倍速位SMOD
	SCON = 0x50;		//8位数据,可变波特率
	TMOD &= 0x0F;		//清除定时器1模式位
	TMOD |= 0x20;		//设定定时器1为8位自动重装方式
	TL1 = 0xF3;		//设定定时初值
	TH1 = 0xF3;		//设定定时器重装值
	ET1 = 0;		//禁止定时器1中断
	TR1 = 1;		//启动定时器1
}*/

unsigned char Sec;
unsigned char i;
void main()
{ 
	   UART_Init();
      while(1)
{     
}
}

void UART_Routine() interrupt 4
{
	if(RI==1)
	{
		P2=SBUF; //将串口数据发送给P2
		RI=0;
	}
}